package net.bungaeting.client.android.activity;

import android.app.*;
import android.content.*;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.*;

public class MapButtonActivity extends Activity{
	 
	Button make_bt;
	AlertDialog.Builder alt_make = new AlertDialog.Builder(this);
	
		public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.bungae_map);
        
        make_bt.findViewById(R.id.find_bt);
        make_bt.setOnClickListener(new View.OnClickListener(){
        	 public void onClick(View v){
//        			Geocoder geocoder = new Geocoder(mEdit.getText().toString(),  );
    
        	    	LayoutInflater inflater = getLayoutInflater();
        	    	final View view = inflater.inflate(R.layout.dialog, null);
        			
        			alt_make.setView(view);
        			
        			alt_make.setCancelable(false).setPositiveButton("아니오", 
        					 
        				new DialogInterface.OnClickListener() {
        		    		public void onClick(DialogInterface dialog, int id) {
        		    		dialog.cancel();
        		    	}
        		    }); 
        			
        			AlertDialog dialog = alt_make.create();  
        			
        			dialog.setTitle("번개 등록");
        			dialog.show(); 

        			}
	    });
        
    }

}
